package com.xiangge.zuoye;

import java.util.Scanner;

public class Demo3 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入行数：");
        int n = input.nextInt();
        System.out.println("请输入列数：");
        int m = input.nextInt();
        if (n<=0||m<=0){
            System.err.println("数据不合法");
        }

        getJuxing(n,m);
    }

    public static void getJuxing(int n, int m) {
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < m; j++) {

                System.out.print("@");
            }
            System.out.println();
        }

    }
}
